package testcases.OpportunitiesBaseDataView.ManualUpdateView;
import resources.testcases.OpportunitiesBaseDataView.ManualUpdateView.UI028_Opportunities_Base_Data_View_Manual_Update_View_STG_BrandHelper;
import tasks.Brand;
import tasks.OpportunitiesBaseData.ManualUpdateView.ContextualData.ContextualDataVerifier;
import core.Configurations;
import core.Preconditions;
import core.enums.Reports;
/**
 * Description   : Functional Test Script
 * @author angel.tsvetkov
 */
public class UI028_Opportunities_Base_Data_View_Manual_Update_View_STG_Brand extends UI028_Opportunities_Base_Data_View_Manual_Update_View_STG_BrandHelper
{
	private boolean stepResult = false;
	private ContextualDataVerifier contextualData = new ContextualDataVerifier();
	Brand brand = Brand.STG;
	String detailKey = "255U-FVJL2D";
	
	private boolean testCasePreconditions() {
		boolean preconditionResult = false;

		preconditionResult = Preconditions.globalPreconditionWebSpehereWithParam(Reports.OpportunitiesBaseDataViewManualUpdate,detailKey);

		return preconditionResult;
	}

    public void executeTest()
    {
        beginTestCase("UI028",
                      "Verify that the fields in the Front End - Opportunities Base Data View -  Manual Update via Drill Through From Opportunity Record  - ITS Brand - are populated with the respective data from Data Base",
                      "",
                      "Angel Tsvetkov",
                      "",
                      "");
        
        if (testCasePreconditions())
        {     
        	TimeWait(5);
        	
        	stepResult = contextualData.verify(brand,"255U-FVJL2D");
        	setStepResult(stepResult, "Verify Manual Update contextual data!" );
        	
        	
        	
        	TimeWait(1);
        }
    }
    
    public void testMain(Object[] args)
    {
    	setUp(args);
        executeTest();
        reportTestCaseResult("UI008 - Opportunities Base Data View - Main View STG", Configurations.PROJECT_NAME);
    }
}

